<h2 id="schedule">2. Schedule</h2>
<div>
    This service returns all schedule items of a specific course/year combination which occur in the future.<br />
    The data returned comes from <a href="http://almaty.fh-joanneum.at/stundenplan/" target="_blank">the Almaty webservice</a> which was implemented by Thomas Radeke. 
    <b>Request URL</b><br />
    <div class="url"><?php echo $config['path']; ?>getschedule.php?c=XXX&y=YYY&k=ZZZ</div><br />
    
    <b>Request Parameters</b><br />
    <table>
        <tr>
            <th>Key</th>
            <th>Name</th>
            <th>Explanation</th>
        </tr>
        <tr>
            <td>c</td>
            <td>Course</td>
            <td>The three-letter abbreviation of your course.</td>
        </tr>
        <tr>
            <td>y</td>
            <td>Year</td>
            <td>The four-digit year of your class.</td>
        </tr>
        <tr>
            <td>k</td>
            <td>FHPI Key</td>
            <td>The FHPI key of your application. <a href="<?php echo $config['path']; ?>manage/register.php">Get yours here</a>.</td>
        </tr>
    </table><br />
    
    <b>Example Result</b><br />
    <div class="sample">
        <?php
            $string = '<Events>
<Status>OK</Status>
<Course>ITM</Course>
<Year>2010</Year>
<Event>
<Title>NetzMa</Title>
<Lecturer>
Takashi Linzbichler/Michael Brickmann/Mathias Knoll
</Lecturer>
<Location>HS102</Location>
<Type>PA</Type>
<Start>1326787200</Start>
<End>1326790800</End>
</Event>
</Events>';
            echo nl2br(htmlentities($string));
        ?>
    </div><br />
    
    <b>Notes</b><br />
    <div>
        The root element of the returned document is "Events". Within this element there can be several "Event" elements which contain all relevant information. Start and end time are represented as UNIX timestamps.
    </div>
    
</div>